﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EPiServer.Core;

namespace EPiBoost.Core.Extensions
{
	public static class XhtmlStringExtensions
	{
		public static string StripHtml(this XhtmlString xhtmlString, int maxTextLength = 0, string moreTextMarker = "...")
		{
			string result = xhtmlString.ToString();
			result = Helpers.HtmlStringHelper.StripHtml(result, maxTextLength, moreTextMarker);
			
			return result;
		}
	}
}
